/*
 * Can be added to a Spatial to be called when a collision occurs.
 */
package com.cmp.player.controls;

import com.jme3.bullet.collision.PhysicsCollisionEvent;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Spatial;
import com.jme3.scene.control.AbstractControl;

/**
 *
 * @author pfanne
 */
public abstract class CollisionControl extends AbstractControl{

    abstract public void onCollision(PhysicsCollisionEvent event, Spatial other, boolean isA);
    @Override
    protected void controlUpdate(float tpf) {
    }

    @Override
    protected void controlRender(RenderManager rm, ViewPort vp) {
    }
    
}
